<template>
    <div class="container">
        <div class="header">
            <Header :opacity="0.8"></Header>
        </div>
        <div class="content">
            <div class="group">
                <div class="crumbs">首页 > 荣誉</div>
                <div class="title">
                    活动介绍
                </div>
                <div class="header_text">
                    “绘美山河”青少年书画艺术作品征集活动是由中华人民共和国文化和旅游部批准、中华人民共和国民政部注册的中华文化促进会指导、
                    中华文化促进会美育工作委员会主办，面向全国广大青少年儿童展开的书画活动。
                </div>
            </div>
            <div class="group">
                <div class="title">
                    组织机构
                </div>
                <div class="introduced_subtitle">
                    指导单位
                </div>
                <p>
                    中华文化促进会
                </p>
                <div class="introduced_subtitle">
                    主办单位
                </div>
                <p>
                    中华文化促进会美育工作委员会
                </p>
                <div class="introduced_subtitle">
                    承办单位
                </div>
                <p>
                    北京全民美育文化发展中心
                </p>
                <p>
                    北京央美美育艺术发展中心
                </p>
            </div>
            <div class="group">
                <!-- 证书 -->
                <div class="cert">
                    <img @click="lookBigImg('/images/cert-10.png')" src="/images/cert-10.png" alt="">
                    <img @click="lookBigImg('/images/cert-11.png')" src="/images/cert-11.png" alt="">
                    <img @click="lookBigImg('/images/cert-12.png')" src="/images/cert-12.png" alt="">
                </div>
            </div>
            <div class="group">
                <div class="title">
                    活动意义
                </div>
                <div class="header_text">
                    弘扬中华优秀传统文化，发扬爱国主义精神，加强青少年交流学习，促进书画艺术发展，推动全民美育素质提高，
                    引导青少年感受伟大祖国的大好河山，以自己的独特的视角，通过书法、绘画、手工、摄影等形式来表达生活中和心中的真善美，
                    激发青少年爱国主义精神，为祖国的繁荣昌盛贡献自己的力量。
                </div>
                <div style="margin-bottom: 5vw;"></div>
            </div>
        </div>

        <div class="footer">
            <Footer></Footer>
        </div>

        <!-- 查看证书（大图） -->
        <div class="certBig" v-if="certBig" @click="certBig = false">
            <img :src="certBigImg" alt="">
        </div>
    </div>
</template>
<script>
import Footer from '@/components/Footer/Footer.vue';
import Header from '@/components/Header/Header.vue';

export default {
    name: 'introduced',
    data() {
        return {
            certBig: false,
            certBigImg: '',
        }
    },
    components: {
        Header, Footer
    },
    methods: {
        lookBigImg(src) {
            this.certBig = true;
            this.certBigImg = src;
        }
    }
}
</script>
<style scoped>
.container {
    width: 100%;
}

.content {
    width: 100%;
    padding-top: 3vw;
    background-image: url('./images/introduced_background-10.png');
    background-size: 100% 100%;
    position: relative;
}

.group {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.crumbs {
    font-size: 18px;
    position: absolute;
    top: 3vw;
    left: 10vw;
}

.title {
    width: 10vw;
    margin: 5vw 0;
    margin-bottom: 3vw;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 100% 100%;
    background-image: url('../../assets/images/all_title.png');
}

.header_text {
    width: 70%;
    font-size: 24px;
    letter-spacing: 8px;
    line-height: 50px;
    text-indent: 2em;
}

.introduced_subtitle {
    width: 12vw;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 100% 100%;
    background-image: url('./images/introduced_subtitle-10.png');
    margin: 1vw 0;
}

p {
    width: 70%;
    font-size: 28px;
    height: 50px;
    text-align: center;
}

.cert {
    margin-top: 5vw;
    margin-bottom: 5vw;
}

.cert img {
    width: 20vw;
    margin: 0 1vw;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease;
}

.cert img:hover {
    cursor: pointer;
    transform: translateY(-20px);
}

.certBig {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.certBig img {
    height: 80vh;
}

.footer {
    height: 15vw;
}


/* 手机/小屏幕 */
@media screen and (max-width: 960px) {
    .content {
        padding-top: 8vw;
    }

    .crumbs {
        margin: 3vw;
        margin-left: 10vw;
        font-size: 12px;
    }

    .title img {
        width: 40vw;
        margin-bottom: 5vw;
    }

    .title {
        width: 40vw;
        margin: 5vw 0;
        margin-bottom: 3vw;
        font-size: 26px;
    }

    .header_text {
        width: 85%;
        font-size: 16px;
        letter-spacing: 4px;
        line-height: 35px;
    }

    .introduced_subtitle {
        width: 50vw;
        font-size: 22px;
        margin: 2vw 0;
    }

    p {
        width: 85%;
        font-size: 18px;
        height: 35px;
    }

    .cert img {
        width: 25vw;
        margin: 0 1vw;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
        transition: transform 0.5s ease;
    }

    .cert img:hover {
        transform: translateY(-10px);
    }

    .certBig img {
        width: 90vw;
        height: auto;
    }

    .footer {
        height: 30vw;
    }
}
</style>